<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width,initial-scale=1,maximum-scale=1.0" />
<title>详情订单表</title> <#include "/view/admin/head.html"/>





<style type="text/css">
.list-path {
	height: 50px;
	line-height: 50px;
	background-color: #9acfea;
}

.table-class {
	width: 90%;
	text-align: center;
	border: 1px solid #afd9ee;
	margin: 0 auto;
	margin-top: 50px;
}

table th {
	width: 20%;
	background-color: #d9edf7;
	text-align: right;
}

table td {
	width: 20%;
	text-align: left;
}
</style>
<script type="text/javascript">
	
</script>
</head>
<body>

	<#include "/view/admin/listnav.html"/>

	<div class="table-class">
		<#include "/view/admin/opermsg.html"/>
		<table class="table table-bordered">



			<tr>
				<th colspan="4"><center>
						<h4>
							<font color="red">订单收货信息</font>
						</h4>
					</center></th>
			<tr>
			<tr>
				<td>收货人</td>
				<td><#if entity.businOrderdistribution ??>
					${entity.businOrderdistribution.recipients!} </#if></td>




				<td>收货人联系电话</td>
				<td><#if entity.businOrderdistribution ??>
					${entity.businOrderdistribution.phoneNo!} </#if></td>
			</tr>


			<tr>
				<td>购买人</td>
				<td>${entity.businOrderUser.nickname!}</td>
				<td><#if entity.purchaseOrLease=="1">预付定金 </#if> <#if
					entity.purchaseOrLease=="2">总金额 </#if ></td>
				<td>${entity.totalAmount!}</td>


			</tr>


			<tr>





				<td>邮政编码</td>
				<td>${entity.postalCode!}</td>
				<td>订单状态</td>
				<td>

				<#if entity.status ??> 
				<#if entity.status==26>未购买 </#if>
				<#if entity.status==27>未预付租赁 </#if>
				<#if entity.status==1>支付成功</#if>
				<#if entity.status==25>发货处理中 </#if>
				<#if entity.status=13>已发货 </#if>
				<#if entity.status==20> 已确认收货</#if>
				<#if entity.status==21> 已结束租赁</#if>
				<#if entity.status==22>归还中 </#if>
				<#if entity.status==23> 已归还</#if>
				<#if entity.status==24>租赁中</#if>
				<#if entity.status==10> 取消订单中</#if>
				<#if entity.status==17> 订单已取消</#if>
				<#if entity.status==8>已完成 </#if>
					 <#else>
					  -- 
					  </#if>
					
					
					</td>
			</tr>

			<tr>

				<td>买家留言</td>
				<td colspan="3"><#if entity.businOrderdistribution ??>
					${entity.businOrderdistribution.message!} </#if></td>
			</tr>


			<tr>
				<td>收货地址</td>
				<td colspan="3"><#if entity.businOrderdistribution ??>
					${entity.businOrderdistribution.address!} 
					</#if>
					</td>

			</tr>
		</table>

		<table class="table table-bordered">
			<tr>
				<th colspan="8"><center>
						<h4>
							<font color="red">订单商品信息</font>
						</h4>
					</center></th>
			<tr><#if entity.purchaseOrLease=="1">
			<tr>
				<td>租赁商品名称</td>
				<td>租赁数量</td>
				<td>日租金</td>
				<td>租赁天数 </br>租赁计算天数
				</td>
				<td>开始计费日期 </br>结束计费日期
				</td>
				<td>租赁金额&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
				<td>设备编号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
				<td>商品默认图片</td>
			</tr>

			<#list list as c>
			<tr>

				<td>${c.commodityName!}</td>
				<td>${c.amount!}</td>
				<td>${c.dailyRent!}</td>
				<td>
				
				<#if c.leaseDays??>
				${c.leaseDays!} 
				<#else>
				--
				</#if>
				
				</br>
				<#if c.leasejisuanDays??>
				${c.leasejisuanDays!}
				<#else>
				--
				</#if>
				
				</td>
				<td>
					<#if c.rentDate ??>
					${c.rentDate?string("yyyy-MM-dd HH:mm")}
						<#else>
					--
					</#if> </br>
						<#if c.endRentDate ??>
					${c.endRentDate?string("yyyy-MM-dd HH:mm")}
					<#else>
					--
					</#if>
				</td>
				<td>${c.endLeaseAmount!}</td>
				<td>
				<#list entity.deviceNumbers as c>
							${c}
					</#list>
				</td>
				<td><img src="${base}/${c.imagePath!}" width="80px"
					height="60px" /></td>


			</tr>
			</#list> </#if> <#if entity.purchaseOrLease=="2">
			<tr>
				<td>商品名称</td>
				<td>购买数量</td>
				<td>购买单价</td>
				<td colspan="4">设备编号</td>
				<td>商品默认图片</td>
			</tr>

			<#list list as c>
			<tr>

				<td>${c.commodityName!}</td>
				<td>${c.amount!}</td>
				<td>${c.salePrice!}</td>
				<td colspan="4">
				
				<#list entity.deviceNumbers as c>
							${c}
					</#list>
					</td>
				<td><img src="${base}/${c.imagePath!}" width="80px"
					height="60px" /></td>


			</tr>
			</#list> </#if>




			<!-- <tr>
				<td colspan="8">优惠券信息</td>
			</tr>
			<tr>
				<#if coupons??>
				<th>是否使用优惠券</th>
				<td><span class="label label-success">是</span></td> <#else>
				<th>是否使用优惠券</th>
				<td colspan="7"><span class="label label-default">否</span></td>

				</#if>


			</tr>
			<#if coupons??>
			<tr>
				<th>优惠券名称</th>
				<td>${coupons.thingName!}</td>
				<th>优惠金额</th>
				<td colspan="7">${coupons.price!}</td>
			</tr> 
			</#if>-->

		</table>
		
			<table class="table table-bordered">
			<tr>
				<th colspan="8"><center>
						<h4>
							<font color="red">商物流品信息</font>
						</h4>
					</center></th>
			</tr>
			<tr>
				<td>快递公司</td>
				<td>快递号</td>
				<td>发货时间</td>
			</tr>
			<#if czjexpress ??>
			<tr>
				<td>${czjexpress.expressCompany !}</td>
				<td>${czjexpress.courierNumber !}</td>
				<td><#if czjexpress.createTime?? >${czjexpress.createTime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>
			</tr>
			<#else>
			<tr>
				<td colspan="3" style="color: red">没有相关数据</td>
			</tr>
			</#if>
			</table>
		
		<table class="table table-bordered">
		<th colspan="8"><center>
						<h4>
							<font color="red">用户结束租赁回执照片</font>
						</h4>
					</center>
					</th>
					<tr>
		<#if (expressPics ??) && (expressPics?size >0) >
			<td colspan="8">
			<#list expressPics  as c>
						<img src="${base}/${c.picPath!}" width="150px"
					height="150px" />
			</#list>
			</td>
			<#else>
			<td colspan="8" style="color: red">没有相关数据</td>
			</#if>
			</tr>
			
		
		</table>
		</form>




	</div>

	<script type="text/javascript">
		
	</script>


</body>
</html>
